package com.etoak.service.impl;

import com.etoak.entity.Draft;
import com.etoak.mapper.CheckListDraftMapper;
import com.etoak.service.ICheckListDraftService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author zhixuebin
 * @Date 2022/5/16
 */
@Service
public class CheckListDraftServiceImpl implements ICheckListDraftService {

    @Autowired
    CheckListDraftMapper checkListDraftMapper;

    @Override
    public int addDraft(Draft draft) {
        return checkListDraftMapper.addDraft(draft);
    }

    @Override
    public Draft getDraft(Draft draft) {
        return checkListDraftMapper.getDraft(draft);
    }

    @Override
    public Draft getDraftById(String id) {
        return checkListDraftMapper.getDraftById(id);
    }

    @Override
    public int updateDraft(Draft draft) {
        return checkListDraftMapper.updateDraft(draft);
    }

    @Override
    public int deleteDraft(String id) {
        return checkListDraftMapper.deleteById(id);
    }
}
